package com.cskaoyan.catmall.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: 逍遥子
 * @Date: 2022/01/07/19:07
 * @Description:
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class OrderDetailVo {

    private List<OrderGoodsDTO> orderGoods;
    private UserDTO user;
    private OrderDTO order;

    @NoArgsConstructor
    @Data
    public static class UserDTO {
        private String nickname;
        private String avatar;
    }

    @NoArgsConstructor
    @Data
    public static class OrderDTO {
        private Integer id;
        private Integer userId;
        private String orderSn;
        private Integer orderStatus;
        private Integer aftersaleStatus;
        private String consignee;
        private String mobile;
        private String address;
        private String message;
        private Integer goodsPrice;
        private Integer freightPrice;
        private Integer couponPrice;
        private Integer integralPrice;
        private Integer grouponPrice;
        private Integer orderPrice;
        private Integer actualPrice;
        private String shipSn;
        private String shipChannel;
        private String shipTime;
        private Integer comments;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }

    @NoArgsConstructor
    @Data
    public static class OrderGoodsDTO {
        private Integer id;
        private Integer orderId;
        private Integer goodsId;
        private String goodsName;
        private String goodsSn;
        private Integer productId;
        private Integer number;
        private Integer price;
        private String[] specifications;
        private String picUrl;
        private Integer comment;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }
}
